package com.zhiwen.design.proxy.staticProxy;

import com.zhiwen.design.proxy.SellHouse;

/**
 * @Auther: wuzhiwen
 * @Date: 2018/11/30 13:54
 * @Description:
 */
public class SellHouseProxy implements SellHouse {

    private SellHouse sellHouse;

    public SellHouseProxy(SellHouse sellHouse){
        this.sellHouse = sellHouse;
    }

    public void sellHouse() {
        sellHouse.sellHouse();
        System.out.println("有人想买房子，我得帮他卖掉");
    }
}
